package net.lab1024.sa.user.module.business.course.dao;

import java.util.List;

import io.swagger.models.auth.In;
import net.lab1024.sa.user.module.business.course.domain.entity.CoursePeriodEntity;
import net.lab1024.sa.user.module.business.course.domain.form.CoursePeriodQueryForm;
import net.lab1024.sa.user.module.business.course.domain.vo.CoursePeriodVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

/**
 * 课程时段 Dao
 *
 * @Author jabari
 * @Date 2023-08-05 16:49:34
 * @Copyright 51dev.cn
 */

@Mapper
@Component
public interface CoursePeriodDao extends BaseMapper<CoursePeriodEntity> {

    /**
     * 分页 查询
     *
     * @param page
     * @param queryForm
     * @return
     */
    List<CoursePeriodVO> queryPage(Page page, @Param("queryForm") CoursePeriodQueryForm queryForm);

    List<CoursePeriodVO> getCoursePeriodVOList(@Param("courseIds")List<Integer> courseIds);


}
